import request from "@/utils/request";

// 查询客服订单列表
export function getOrderList(query) {
  return request({
    url: "/customer/order/list",
    method: "get",
    params: query,
  });
}

// 保存审核意见
export function addProcess(data) {
  return request({
    url: "/customer/order/addProcess",
    method: "post",
    data,
  });
}

// 修改订单状态
export function updateOrderStatus(data) {
  return request({
    url: "/customer/order/updateOrderStatus",
    method: "post",
    data,
  });
}

// 下载文件
export function downloadFile(id) {
  return request({
    url: `/minio/download/${id}`,
    method: "get",
  });
}

// 查询客服订单列表
export function salesmanList() {
  return request({
    url: "/customer/order/salesmanList",
    method: "get",
  });
}
